<?php

class BlogBookmarkTable extends BlogLinkTable
{
  /**
   * Returns published bookmarks links.
   *
   * @param int $limit
   * @return Doctrine_Collection
   */
  public function getLastPublishedLinks($limit = 10)
  {
    return $this->getPublishedQuery()->
      orderBy('a.created_at desc')->
      limit($limit)->
      execute()
    ;
  }
}
